package com.example.mbl.dao;

import com.example.mbl.entity.Article;
import com.example.mbl.result.business.ArticlePageResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleMapper {

    List<Article> searchItemsByKeyWord(String keyword);

    int deleteByPrimaryKey(String articleid);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(String articleid);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKey(Article record);

    List<ArticlePageResult> getArticleList(@Param("title") String title,
                                           @Param("publishdate") String publishdate,
                                           @Param("start") int start,
                                           @Param("pagesize") int pagesize);

    int setArticleVisible(String articleid);
}